-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: replace background with short-lived tasks #3842
Conversation
Hybrid state management uses a Merkle-Patricia trie for the latest state and layers for history.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one went over my head, so I'm just leaving some random questions from skimming the code
@@ -264,7 +264,7 @@ export class HttpProvider extends EventEmitter implements EIP1193Provider { | |||
): number | undefined { | |||
const header = response.headers["retry-after"]; | |||
|
|||
if (header === undefined || header === null) { | |||
if (header === undefined || header === null || Array.isArray(header)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious about this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pato & I were debugging the tsc
not recompiling after the native node add-on was updated and in the process re-installed the workspace. This updated one of our dependencies as well, resulting in this issue. Pato mentioned having fixed this on main
this way, so we did that locally too
#[derive(Debug)] | ||
pub struct RethnetContext { | ||
inner: Arc<Context>, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does NAPI-RS do with Arc
s? I searched their docs but couldn't find it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing. This is a native Rust object that is exposed to JS using a handle.
rethnet/main